Adwaita: Use transparent black for window border in dark too
authorAlexander Mikhaylenko <alexm@gnome.org>
Fri, 5 Mar 2021 17:59:25 +0000 (22:59 +0500)
committerAlexander Mikhaylenko <alexm@gnome.org>
Fri, 5 Mar 2021 17:59:25 +0000 (22:59 +0500)
Avoid smear when the background behind the window is dark. Adjust opacity
to make it appear roughly the same as before on white background.

gtk/theme/Adwaita/_common.scss

index ca35ea7b300182f220f670f31c8fdefff7ef9da8..c5baa58518626229affd82563e5c191eccbff36f 100644 (file)
@@ -1821,7 +1821,7 @@ popover.background {
 
   > arrow,
   > contents {
-    $_popover_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));
+    $_popover_border: if($variant=='light', transparentize(black, 0.77), transparentize(black, 0.25));
 
     background-color: $menu_color;
     background-clip: padding-box;
@@ -4043,8 +4043,8 @@ window {
 
   // this needs to be transparent
   // see bug #722563
-  $_wm_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));
-  $_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize($borders_color, 0.1));
+  $_wm_border: if($variant=='light', transparentize(black, 0.77), transparentize(black, 0.25));
+  $_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize(black, 0.25));
 
   &.csd {
     box-shadow: 0 3px 9px 1px transparentize(black, 0.5),